<template>
  <div>
    <h2 align="center">插槽技术删除</h2>
    <AdminFinanceList v-model="data">
      <input type="button" value="删除" class="btn btn-danger" @click="DelInfo(data)" >
    </AdminFinanceList>
  </div>
</template>

<script setup lang="ts">

import {reactive,toRefs,onMounted} from 'vue'

import axios from 'axios';

import {useRoute,useRouter} from 'vue-router'

let route = useRoute()
let router = useRouter()

//数据
let data:any = reactive({
  //登录数据
  list:[],
   //查询条件
   financeList:{
    F_Name:'',
    pageindex:1,
    pagesize:3
  },
  listcount:'',
  pagecount:'',
  arr:[],
})

//解构
let {list,financeList,listcount,pagecount,arr} = toRefs(data)


//删除方法
const DelInfo =(data:any)=>{
  if(confirm("确认删除吗")){
    axios({
      url:''
    })
  }
}

</script>

<style scoped>

</style>